<template>
  <el-button
    :type="type"
    :size="size"
    @click="handleClick">
    {{ text }}
  </el-button>
</template>

<script setup>
const props = defineProps({
  text: {
    type: String,
    default: '按钮'
  },
  type: {
    type: String,
    default: 'primary'
  },
  size: {
    type: String,
    default: 'default'
  }
})

const emit = defineEmits(['click'])

const handleClick = () => {
  emit('click')
}
</script> 